home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1996 November / macformat-043.iso / mac / Shareware Plus / Developers / OpenStack Rinaldi Collection / openstack-rinaldi-lib / GetFInfo 1.3 (US) / GetFInfo 1.3 (US).rsrc / HELP_5635 next >
Encoding:
Text File  |  1996-01-09  |  4.1 KB  |  96 lines

  1.  
  2.  
  3.                                              GetFInfo 1.3
  4.  
  5.                                          by Frédéric RINALDI
  6.  
  7. DESCRIPTION
  8.   GetFInfo is an XFCN returning a list of Finder informations for a file.
  9.  
  10. SYNTAX
  11.              GetFileInfo <file path or name>[,"DontResolveAlias"]
  12.  
  13. PARAMETERS
  14.    <file path or name> can be a single name or whole pathname. If just a single name is supplied, the file is assumed to be in the same folder than the current stack.
  15.  
  16.    "dontResolveAlias" allows to deal with an alias file itself (System 7.0 only) rather than with the file pointed by it.
  17.  
  18.    Using "!", "?" or "=" as first parameter will return an online help (resp. copyright, syntax and output).
  19.  
  20. USING
  21.    The returned list contains the following 23 items :
  22.  
  23.   1) type
  24.   2) creator
  25.   3) creation date (short format)
  26.   4) creation time
  27.   5) modification date (short format)
  28.   6) modification time
  29.   7) total size in bytes
  30.   8) data fork size in bytes
  31.   9) resource fork size in bytes
  32.  
  33. then 16 booleans values corresponding to the file flags (depending on System version):
  34.  
  35.       System 6.0                                    System 7.0
  36.  
  37. 10) onDesk                                           on Desk
  38. 11) bFOwnAppl                                     color 1
  39. 12) réservé                                         color 2
  40. 13) réservé                                         color 3
  41. 14) bfNever (never switch launch)       colorReserved
  42. 15) bfAlways (always switch launch)   requiresSwitchLaunch
  43. 16) shareable application                     isShared
  44. 17) réservé                                         hasNoINITs
  45. 18) Inited                                            hasBeenInited
  46. 19) Changed                                         Reserved
  47. 20) Busy                                             hasCustomIcon
  48. 21) NoCopy                                         isStationery
  49. 22) System                                         nameLocked
  50. 23) hasBundle                                      hasBundle
  51. 24) Invisible                                        isInvisible
  52. 25) Locked                                          isAlias
  53.  
  54. ERRORS
  55.    If an error occurs, the XFCN will return :
  56.      "Error : Not a file"
  57.      "Error : Not a folder"
  58.      "Error : Alias file not supported"
  59.      "Error : Volume not found"
  60.      "Error : Bad Name"
  61.      "Error : File not found"
  62.      "Error : Folder not found"
  63.      "Error : File is busy"
  64.      "Error : I/O Error"
  65.      "Error : Folder is full"
  66.      "Error : Volume is locked"
  67.      "Error : No resource fork"
  68.      "Error : Duplicate file/folder name"
  69.      "Error : Moving whole volume not allowed"
  70.      "Error : Not an AppleShare volume"
  71.      "Error : AppleShare insufficient privileges"
  72.      "Error : Couln't get INTL resource"
  73.      "Error : Missing or empty parameter(s)"
  74.      "Error : Second param can only be "DontResolveAlias"
  75.  
  76. HISTORY
  77. 1.3                                                                                         01/06/93
  78. • 20% smaller for the same result!
  79.                                                                                          
  80. 1.2                                                                                         12/25/91
  81. • Fixed alias file bug under System 7.0.1
  82.                                                                                          
  83. 1.1                                                                                         08/04/91
  84. • Added support for System 7.0 alias files
  85. • General enhancement of the code
  86. • Added "DontResolveAlias" parameter
  87.  
  88. This stack also uses MacType & Switch XFCNs, © Frederic RINALDI 1989…1993.
  89. --------------------------------------------------------------------   All externals included in this stack are FreeWare and may be used in non-commercial software provided the following notice is visibly present :
  90.  
  91.                   GetFInfo XFCN, © Frederic Rinaldi, 1989…1993.
  92.  
  93.    Free for non-commercial use. Use in commercial software subjected to prior acknowledgement and licensing from the author, reachable at the following network addresses:
  94.  
  95. AppleLink: RINALDI1   CalvaCom : FR10    Compuserve : 71170,2111
  96.                Internet : RINALDI1@APPLELINK@APPLE.COM